<!-- 图片列表页模板 -->
<!-- inc:inc.head -->

<div id="bd">
    <div id="toolbar" class="clearfix">
    	<div id="md_sitemap">
			<a href="home.php">首頁</a>>
			<a href="picturelist.php">圖檔下載</a>>
            <a>{:$rs[subject]}</a>
    	</div>
    	<!-- inc:inc.search -->
    </div>
</div>

 <div id="shop" class="yui-g">
    <div id="lc" class="yui-u first"> 
        <div id="md_shopsbcate" class="shopscbox">
            <div class="hd"><a href="picturelist.php"><em>全部圖檔</em></a></div>
            <div class="bd">
                <ul>
                    <!-- $left_catelist AS $key=>$value -->
                    <li {if($value[id] == $id)}class="on"{end}><a href="picturelist.php?id=<?php echo $value[id]?>">{:$value[catename]}</a></li>
                    <!-- end -->
                </ul>
            </div>
            <div class="ft"></div>
        </div>
    </div>
    <div id="rc" class="yui-u"> 
        <div id="md_piclist">
            <div class="hd"></div>
            <div class="bd">
                <ul class="list clearfix">
                    <?php foreach($msglist as $key=>$value){
                        if($value['images']==""){break;}
                        $imgssql = "SELECT * FROM ".$prefix."upfiles where id in (0".$value['images'].") order by size";
                        $rsimgs = $DB->qgGetAll($imgssql,true);
                    ?>
                    <li>
                        <img alt="<?php echo $value['subject']?>" src="<?php if($rsimgs[0]['thumbfile']!=''){echo $rsimgs[0]['folder'].$rsimgs[0]['thumbfile'];}else{echo 'images/nopicture.gif';}?>" />
                        <div class="sizes">
                        <?php foreach($rsimgs as $ikey=>$img){?>
                            <a target="_blank" href="file.php?id=<?php echo $img['id']?>" ><?php echo $img['size']?></a>
                        <?php } ?>
                        </div>
                        <div class="sizesbg"></div>
                    </li>
                    <?php } ?>
                </ul>
                <div class="pager">{:$pagelist}</div>
            </div>
            <div class="ft"></div>
        </div>
    </div>
</div>
<script type="text/javascript">
if(document.getElementById("lc").offsetHeight<document.getElementById("rc").offsetHeight){document.getElementById("lc").style.height = document.getElementById("rc").offsetHeight + "px";}
</script>

<!-- inc:inc.foot -->
